package cn.community.system.service;

import cn.community.system.domain.DeviceRecord;
import cn.community.system.query.DeviceRecordQuery;
import cn.community.system.query.QueryObject;
import cn.community.system.vo.ApplyLendVo;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface IDeviceRecordService {
    void delete(Long id);
    void save(DeviceRecord deviceRecord);
    DeviceRecord get(Long id);
    List<DeviceRecord> listAll();
    void update(DeviceRecord deviceRecord);

    // 分页
    PageInfo query(QueryObject qo);

    PageInfo queryAsso(DeviceRecordQuery qo);

    void agreeLeading(DeviceRecord deviceRecord);

    PageInfo queryLeadList(DeviceRecordQuery qo);

    PageInfo queryReturnList(DeviceRecordQuery qo);

    PageInfo queryLeadListAsso(DeviceRecordQuery qo);

    PageInfo queryReturnListAsso(DeviceRecordQuery qo);

    void saveLend(ApplyLendVo applyLendVo);

    void saveLendAsso(ApplyLendVo applyLendVo);

    void agreeReturn(DeviceRecord deviceRecord);

    void applyReturn(Integer isReturn, Long id);
}
